<%--
  Created by IntelliJ IDEA.
  User: #不醒人士
  Date: 2022/12/4
  Time: 23:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户登录</title>
    <%
        String path = request.getContextPath();

        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/css/login.css";
    %>

    <link rel="stylesheet" href="<%=basePath%>" />
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
    <style>
        a:hover{color:royalblue;}
    </style>
</head>
<body>
    <a href="adminLogin.jsp" title="跳转管理员登录">
        <i class="el-icon-s-tools" style="float: right;margin-right:730px;margin-top:10px;font-size:30px;color:#FFFFFF;"></i>
    </a>
    <div id="bigBox">
        <h1>LOGIN IN</h1>
        <h2><span id="username_err">${login_msg}</span></h2>
        <div class="inputBox">
            <form action="/LibraryManagementSystem_war_exploded/user/login" id="form">
                <div class="inputText">
                    <i class="fa fa-user-circle" style="color: whitesmoke;"></i>
                    <input type="text" placeholder="用户名" name="username">
                </div>
                <div class="inputText">
                    <i class="fa fa-key" style="color: whitesmoke;"></i>
                    <input type="password" placeholder="密码" name="password">
                </div>
                <input type="submit" class="inputButton"value="登录"><br><br>
                <%--使用绝对路径，使不跳转到BaseServlet导致路径错误--%>
                <a href="<%=path%>/login_page/register.jsp" style="color: #8c939d">没有账号？去注册...</a>
             </form>
        </div>
    </div>
</body>
<script src="../js/vue.js"></script>
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">



</html>
